import sys

from PySide6.QtWidgets import QApplication, QWidget
from  main_qwidget_ui   import Ui_FROM  

class MyWidget(QWidget):
    def __init__(self, parent=None):
        super().__init__(parent)
        self.ui = Ui_FROM()  #创建 UI 类实例
        self.ui.setupUi(self)
        # 在此处添加你的代码

if __name__ == "__main__":
    app = QApplication(sys.argv)
    w = MyWidget()
    w.show()
    sys.exit(app.exec())
